{{include file="user/u_header.html"}}
<div class="w998 u_main clear">
    {{include file="user/u_leftMenu.html"}} 
    <!--右侧开始-->
    <div class="Fr right">
        <div>
            <a href="user.php?ctl=deal&act=borrow&verify=1">还款中</a>
            <a href="user.php?ctl=deal&act=borrow&verify=2">已还清</a>
        </div>

        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tbody>
               <tr>
                <th width="14%" height="40">借款名称 </th>
                <th width="13%">金额(￥) </th>
                <th width="12%">年利率 </th>
                <th width="10%"> 借款时长 </th>
                <th width="10%"> 还款方式 </th>
                <th width="10%"> 下一还款日 </th>
                <th width="105">月还金额</th>
                <th width="">借款状态/操作</th>
              </tr>
              {{foreach from=$res.data item=item}}
                  <tr>
                    <td><a href="index.php?ctl=deal&act=show&id={{$item.ID}}">{{$item.TITLE}}</a></td>
                    <td>{{$item.PRICE}}元 </td>
                    <td>{{$item.RATE}}% </td>
                    <td>{{$item.RATE}}%</td>
                    <td> {{$item.REPAY_TIME}}个月</td>
                    <td> {{$type_loan[$item.TYPE_LOAN]}}</td>
                    <td>2011-11-28</td>
                    <td>200元</td>
                    <td><a href="#">还款</a></td>
                  </tr>
              {{/foreach}}
            </tbody>
        </table>
    </div>
    <!--右侧结束-->
</div>
<link rel="stylesheet" type="text/css" href="res/css/progressbar.css" />
<script type="text/javascript">
$(function() {
    $('.progressbar').each(function(index, el) {
        var num = $(this).find('span').text();
        $(this).addClass('progressbar-' + num);
    });
});
</script>
{{include file="user/u_footer.html"}}
